home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
-
- /******************************************************************
- * set_pixel - turn on a single point on the laser printer page
- *
- * Parameters:
- * x (in) - x coordinate (in dots) of the point
- * y (in) - y coordinate (in dots) of the point
- *
- * Notes:
- * 1. Coordinates are relative to 0,0 at the upper left corner
- * of the display page.
- *
- * Copyright:
- * Original code by William H. Roetzheim (619) 669-6970
- **********************************************************************/
-
- void set_pixel (int x, int y)
- {
- fprintf(stdprn, "\033*p%dx%dY", x, y); /* cursor to x,y posit */
- fprintf(stdprn, "\033*r1A"); /* start raster graphics */
- fprintf(stdprn, "\033*b1W\200"); /* draw one dot */
- fprintf(stdprn, "\033*rB"); /* end raster graphics */
- }